package com.zimi.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class SysOperLog extends Model<SysOperLog> implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String method;//请求方式

    private String userAgent;//浏览器标识

    private String operName;

    private Integer operUserId;

    private String operUserName;

    private String operUrl;

    private String operAddr;

    private String operParam;

    private String operMsg;

    private LocalDateTime operTime;

    private static final long serialVersionUID = 1L;

    @Override
    protected Serializable pkVal() {
        return id;
    }

}